package com.joysuch.wwyt.api.sync;

import org.springframework.beans.factory.annotation.Value;

import java.util.HashMap;
import java.util.Map;

/**
 *  同步接口常量定义
 */
public class SyncConstants {

   // 配置管理Key： 隐患登记URL
   public static final String  BASE_CONFIG_HIDDENDANGER_ADD_URL = "wwyt.sync.hiddenDanger.add.url";
   // 配置管理Key： Server URL
   public static final String  BASE_CONFIG_SERVER_CONTEXT_URL = "wwyt.server.context.url";

   // 配置管理Key： 设备列表URL
   public static final String  BASE_CONFIG_EQUIPMENT_LIST_URL = "wwyt.sync.equipment.list.url";

   //同步设备类型列表
   public static final String  BASE_CONFIG_EQUIPMENT_TYPE_LIST = "wwyt.sync.equipment.type.list";
   //人员
   public static final String  BASE_CONFIG_USER_LIST_URL = "wwyt.sync.user.list.url";
   //人员证书
   public static final String  BASE_CONFIG_USER_CERT_LIST_URL = "wwyt.sync.user.cert.list.url";
   //承包商
   public static final String  BASE_CONFIG_CONTRACTOR_LIST_URL = "wwyt.sync.contractor.list.url";

   //承包商人员
   public static final String  BASE_CONFIG_CONTRACTOR_USER_LIST_URL = "wwyt.sync.contractor.user.list.url";
   //承包商人员证书
   public static final String  BASE_CONFIG_CONTRACTOR_USER_CERT_LIST_URL = "wwyt.sync.contractor.user.cert.list.url";
   //卡口信息
   public static final String  BASE_CONFIG_CREDIT_CARD_RECORD_LIST_URL = "wwyt.sync.credit.card.record.list.url";
   //车辆出入信息
   public static final String  BASE_CONFIG_CAR_RECORD_LIST_URL = "wwyt.sync.car.record.list.url";

//CreditCardRecord
   public static final Long  TENENT_ID_DEFAULT = 1L;

   public static final String CONTRACT_TYPE_VALID ="合格承包商";
   public static final String CONTRACT_TYPE_INVALID ="不合格承包商";


   // 企业代码  申华 0101， 台橡 0102， 宇部 0103， 阿朗 0104
   public static Map<String, String> unitCodeMap = new HashMap<>();
   static{
      unitCodeMap.put("001-001","0101");
      unitCodeMap.put("001-002","0102");
      unitCodeMap.put("001-003","0103");
      unitCodeMap.put("001-004","0104");
   }

   /**  南通市平台监测点对接配置  */
   public static final String MH_MONITPOINT_API_SOCKET_IP = "mh.monitPoint.api.socket.ip";
   public static final String MH_MONITPOINT_API_SOCKET_PORT ="mh.monitPoint.api.socket.port";
   public static final String MH_MONITPOINT_API_SOCKET_OPEN ="mh.monitPoint.api.socket.open";

   /**  南通区平台监测点对接配置  */
   public static final String MH_MONITPOINT_API_REST_URL = "mh.monitPoint.api.rest.url";
   public static final String MH_MONITPOINT_API_REST_USER ="mh.monitPoint.api.rest.user";
   public static final String MH_MONITPOINT_API_REST_PWD ="mh.monitPoint.api.rest.pwd";
   public static final String MH_MONITPOINT_API_REST_OPEN ="mh.monitPoint.api.rest.open";
   public static final String MH_MONITPOINT_API_REST_SEND_SCHEDULE ="mh.monitPoint.api.rest.send.schedule";
   /** 南通市承诺公告推送配置  */
   public static final String API_SAFE_RISK_PROMISE_SENDER_OPEN = "safe.risk.promise.sender.open";
   public static final String API_SAFE_RISK_TENENTCODE_REQUEST ="api.safe.risk.tenentcode.request";
   public static final String API_SAFE_RISK_PROMISE_SENDER_URL ="api.safe.risk.promise.send.url";
   public static final String API_SAFE_RISK_PROMISE_SENDER_PASSWORD ="api.safe.risk.promise.send.password";
   public static final String API_SAFE_RISK_PROMISE_SENDER_ORGCODE ="api.safe.risk.promise.send.orgCode";
   public static final String API_SAFE_RISK_PROMISE_SENDER_COMPANYKEY = "api.safe.risk.promise.send.companyKey";

   // 生产装置 状态
   /**
    * <option value="0">在建</option>
    *  <option value="1">试车</option>
    *  <option value="2">在用</option>
    *  <option value="3">临时移除</option>
    *  <option value="4">禁用</option>
    *  <option value="5">送检</option>
    *  <option value="6">停用</option>
    *  <option value="7">报废</option>
    *  <option value="8">封存</option>
    */
   public static Map<String, String> DEVICE_STATE = new HashMap<>();
   static{
      DEVICE_STATE.put("0","在建");
      DEVICE_STATE.put("1","试车");
      DEVICE_STATE.put("2","运行");
      DEVICE_STATE.put("3","临时移除");
      DEVICE_STATE.put("4","禁用");
      DEVICE_STATE.put("5","送检");
      DEVICE_STATE.put("6","停用");
      DEVICE_STATE.put("7","报废");
      DEVICE_STATE.put("8","封存");
   }







}
